import { checkUsername, checkPassword } from './utils/check'
import './index.css'
import './index.less'
import imgLogo from './assets/logo.png'
import { log } from 'neo-async';
const button = document.querySelector('button');
button.addEventListener('click', () => {
    const usernameVal = document.querySelector('.username').value
    const passwordVal = document.querySelector('.password').value
    if (checkUsername(usernameVal) === false) {
        alert('用户名不合法')
        return
    }
    if (checkPassword(passwordVal) === false) {
        alert('密码不合法')
        return
    }
    alert('成功')
})
const username = 'itheima'
console.log(username);
console.log(`用户名为${username}`);
const res = arr.map(item => item * 2)



